]> dgit.raspbian.org Git - gnome-shell.git/commit
gdm: Disconnect user verifier signals on destruction and verification failed
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 2 Feb 2021 14:08:10 +0000 (15:08 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 12 Feb 2021 20:26:00 +0000 (20:26 +0000)
commit0ccb8e27d455f2b102a4d40852971f601cbc9ba7
tree75e537ce8f04176dfeccbbce76fa0e7e236e0530
parentc936ca3ea000e11b37c760f94b26283da81ced3c
gdm: Disconnect user verifier signals on destruction and verification failed

When a verification session has failed we may want to wait for the user
to have completed all the waiting queries and to have read all the
incoming messages, however during such time an user verifier should
not be allowed to queue further messages to the UI, as we're about to
completely stop the identification or start a new one.

Unfortunately this is not true because we're still connected to the
identifier signals, and so we may still show messages.
This is particularly true when using the fingerprint PAM module as it
may restart the authentication while we're in the process of stopping
it.

So, keep track of all the signals we've connected to, and disconnect on
verification failed and during cancel/clear operations.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1622>
js/gdm/util.js